package com.macro.mall.service;


import com.macro.mall.model.request.XhsPhoneDecryptRequest;
import com.macro.mall.model.response.XhsPhoneDecryptResponse;

/**
 * 小红书手机号服务
 */
public interface XhsPhoneService {
    /**
     * 解密手机号数据
     */
    XhsPhoneDecryptResponse decryptPhoneNumber(XhsPhoneDecryptRequest request, String sessionKey) throws Exception;

    /**
     * 简化版解密（不校验签名）
     */
    XhsPhoneDecryptResponse decryptPhoneNumberSimple(String encryptedData, String iv, String sessionKey) throws Exception;
}
